﻿#Discussion/Support for this script can be found here: https://community.nintex.com/community/build-your-own/blog/2015/06/09/locate-nintex-forms-in-farm-via-powershell

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

Get-SPSite | Get-SPWeb | ForEach-Object {

Write-host "Beginning search for Nintex Forms in :" $_.url

Write-host "Number of Nintex Forms in $($($($_.Lists["NintexForms"]).Items | ?{$_.ContentType.Name -eq "Document"} | ? {$_.level -notcontains "Draft"}).Count)"

}